<!-- MAIN CONTENT -->

<div id="content">
    <div smart-include="app/yksensor/views/sub-header.tpl.html"></div>
    <div class="row margin-bottom-10">          
        <div class="col-xs-12 col-sm-6 col-md-3">
            <div class="icon-addon addon-md">
                <select class="form-control" ng-model="current.pid" ng-change="changeP()">
                    <option value="">所有设备</option>
                    <option ng-repeat="pro in projects" value="{{pro.id}}">{{pro.name}}</option>
                </select>
                <label for="" class="glyphicon glyphicon-search" rel="tooltip" title="按项目筛选实时数据"></label>
            </div>
        </div>
    </div>
    <div class="table-responsive">
        <table class="table table-bordered table-hover no-margin font-sml table-striped sensor_table">
            <thead>
                <tr>
                    <th class="text-align-center">序号</th>
                    <th class="text-align-center">设备编号</th>
                    <th class="text-align-center">所属区域</th>
                    <th class="text-align-center">数据类型</th>
                    <th class="text-align-center">实时数据</th>        
                    <th class="text-align-center">更新时间</th>
                    <th class="text-align-center">信号</th>
                    <th class="text-align-center">状态</th>
                    <th class="text-align-center">曲线</th>
                    <th class="text-align-center">列表</th>
                </tr>
            </thead>
            <tbody>
                <tr ng-repeat="data in realdata">
                    <td class="text-align-center">{{data.order}}</td>
                    <td class="text-align-center">{{data.deviceid}}</td>
                    <td class="text-align-center">{{data.zone}}</td>
                    <td class="text-align-center">{{data.name == "flow" ? "流量" : (data.name == "pos" ? "液位" : (data.name == "temp" ? "温度" : data.name)) }}</td>
                    <td class="text-align-center">{{data.value}}</td>
                    <td class="text-align-center">{{data.time | date:'yyyy-MM-dd HH:mm:ss'}}</td>
                    <td class="text-align-center"><img ng-src="{{data.signal | signalfilter}}"></td>
                    <td class="text-align-center">
                        <span class="{{data.status | status}}">{{data.status == 0 ? "报警" : "正常"}}</span>
                    </td>
                    <td class="text-align-center"><a ng-click="viewchart(data.deviceid,data.name)"><img src="styles/img/chart.png"></a></td>
                    <td class="text-align-center"><a ng-click="viewmoredata(data.deviceid)"><img src="styles/img/list.png"></a></td>
                </tr>
                <!-- 设定：32200.13 Kg, 已装：27659.70 Kg, 瞬时: 44.03 t/h -->
                <!-- ng-click="viewchart('00010004','flow')" -->
                <!-- 30s/1min -->
                <!-- 液位库存：10000 ㎡, 实时液位：3050.30 ㎡ -->
                <!-- ng-click="viewchart('00010006','level')" -->
                
            </tbody>
        </table>
    </div>    
    <!-- end widget content -->
    <!-- <div class="dt-toolbar-footer">
        <tm-pagination conf="paginationConf"></tm-pagination>
    </div> -->


</div>
<!-- END MAIN CONTENT -->
